package com.jule.miaozhuapc.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import com.jule.miaozhuapc.dao.PayDao;
import com.jule.miaozhuapc.domain.WawaPay;

@Repository
public class PayDAOImpl implements PayDao{

	private EntityManager em;
	@PersistenceContext
	public void setEm(EntityManager em) {
		this.em = em;
	}
	@Override
	public void  insertPay(WawaPay wawaPay) {
		em.persist(wawaPay);
	}
}
